#ifndef XTREEVIEW_H
#define XTREEVIEW_H

#include <QTreeView>
#include <QMap>

class QStandardItem;
class xTreeModel;

class xTreeView : public QTreeView
{
    Q_OBJECT
public:
    xTreeView(QWidget *parent = NULL);
    ~xTreeView();

signals:
    void sigTreeNodeSelected(QStandardItem *item);

public slots:
    void slotAddFileToTree(const QString fileName);

    void slotRemoveAllFile();

    void slotTreeNodeSelected(QStandardItem* item);

private:
    /**
     * @brief m_pTreeModel 树形模型
     */
    xTreeModel *m_pTreeModel;

};

#endif // XTREEVIEW_H
